#ifndef LINE_DETECT_H
#define LINE_DETECT_H

#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/core/types_c.h>
#include <opencv2/highgui.hpp>
#include <vector>
#include <iostream>
#include <iomanip>
#include <cmath>

class line_detecter
{
public:
    line_detecter();
    ~line_detecter();
    std::vector<cv::Vec4i> detect_lines(cv::Mat &img_to_line);
    void lines_to_line(std::vector<cv::Vec4i>  & lines, float & y1 ,float & y2);
    void regression_analysis(std::vector<cv::Vec4i>  & number_pair , float & result_k,float & result_b);
    //void gamma(cv::Mat &img_to_line, cv::Mat &result);

    //for trying
    void detect_lines_try(cv::Mat &img_to_line);

private:
};


#endif 